package subversion;

import graphix.DrawPane;
import graphix.Entity;
import java.awt.BorderLayout;
import javax.swing.JFrame;

/**
 * @author duncan
 */
public class Test_Graphix extends JFrame
{
    //Declare DrawPanes
    DrawPane pane   = new DrawPane();

    //Declare Entities
    Entity e_circle = new Entity("img/circle.png", 48, 128);
    Entity e_block  = new Entity("img/block.png", 100, 300);

    /**
     * Test_Graphix constructor.
     */
    public Test_Graphix()
    {
	//Set JFrame settings
	setDefaultCloseOperation(EXIT_ON_CLOSE);
	setSize(640, 480);
	setVisible(true);

	//Set layout and add entities to pane
	setLayout(new BorderLayout());
	add(BorderLayout.CENTER, pane);
	pane.addEntity(e_circle);
	pane.addEntity(e_block);
    }
}
